STYLENN n/a   IE 4   DOM 1

The STYLE object reflects the STYLE element. This object is separate from the style object associated with virtually every element in a document. The STYLE object is generated in a document via the <STYLE> tag, which can have a unique ID value assigned to it; the style object contains all the style properties and their current values as set for a particular element.

Note that the lang, language, media and title properties are not available on the Macintosh version of Internet Explorer 4.

 
HTML Equivalent
<STYLE>
 
Object Model Reference
IE [window.]document.all.elementID
disabledNN n/a   IE 4   DOM 1
 Read/Write
 

Whether rules in the style sheet should be applied to their selected elements. Although the corresponding DISABLED attribute does not work in Internet Explorer 4, setting the disabled property to true does, in fact, turn off the entire style sheet. During page authoring, you can create a button that toggles style sheets on and off to see how the page looks in all types of browsers.

 
Example
document.all.mainStyle.disabled = true
 
Value
Boolean value: true | false..
 
Default false
mediaNN n/a   IE 4   DOM 1
 Read/Write
 

The intended output device for the rules of the STYLE element. The media property looks forward to the day when browsers are able to tailor content to specific kinds of devices such as pocket computers, text-to-speech digitizers, or fuzzy television sets.

 
Example
document.all.myStyle.media = "print"
 
Value
Any one of the following constant values as a string: all | print | screen.
 
Default all
readyStateNN n/a   IE 4   DOM n/a
 Read-only
 

Returns the current download status of the document or embedded content. This property provides a more granular way of testing whether a particular downloadable element is ready to be run or scripted instead of the onLoad event handler for the entire document. As the value of this property changes during loading, the system fires an onReadyStateChange event.

 
Example
if (document.all.myStyle.readyState == "uninitialized") {
    statements for alternate handling
}
 
Value
One of the following values (as strings): complete | interactive | loading | uninitialized. Some elements may allow the user to interact with partial content, in which case the property may return interactive until all loading has completed.
 
Default None.
typeNN n/a   IE 4   DOM 1
 Read-only
 

The style sheet syntax specified by the TYPE attribute of the STYLE element. Internet Explorer 4 knows only the CSS syntax.

 
Example
if (document.all.myStyle.type == "text/css") {
    ...
}
 
Value
String.
 
Default None.